package com.zst.sw.server.module;

import com.alibaba.fastjson2.JSON;
import com.zst.sw.server.module.segment.Segment;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

public interface TraceDataHandler {
    void handle(List<Segment> data);

    @Slf4j
    class DefaultTraceDataHandler implements TraceDataHandler {
        @Override
        public void handle(List<Segment> data) {
            log.info("trace data: {}", JSON.toJSONString(data));
        }
    }
}
